from django.urls import path, re_path

from . import views
from .views import *

urlpatterns = [
    # 个人中心页
    path('.html',shopperView,name='shopper'),
    # 登录注册页
    path('/login.html',loginView,name='login'),
    #注销
    path('/logout.html',logoutView,name='logout'),
    # 购物车
    path('/shopcart.html',shopcartView,name='shopcart'),
    re_path('(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2}).html', views.mydate),
# 删除商品API路由
path('/delete.html', deleteAPI, name='delete'),
]